﻿@using usedcartrade.ViewModels
@model LogRegUserViewModel
<div class="web_qr_login" id="web_qr_login" style="display: block; height: 350px;">

    <!--登录-->
    <div class="web_login" id="web_login">


        <div class="login-box">


            <div class="login_form">
                @Html.ValidationMessage("CredentialError", new { style = "color:red " })
                @using (Html.BeginForm("DoLogin", "Authentication", FormMethod.Post, new { id = "login_form", @class = "loginForm" }))
                {
                    <input type="hidden" name="did" value="0">
                    <input type="hidden" name="to" value="log">
                    <div class="uinArea" id="uinArea">
                        @Html.LabelFor(c => c.UserName, new { @class = "input-tips" })
                        <div class="inputOuter" id="uArea">
                            @Html.TextBoxFor(x => x.UserName, new { @class = "inputstyle" })
                        </div>
                        @Html.ValidationMessageFor(x => x.UserName)
                    </div>
                    <div class="pwdArea" id="pwdArea">
                        @Html.LabelFor(c => c.PassWord, new { @class = "input-tips" })
                        <div class="inputOuter" id="pArea">
                            @Html.PasswordFor(x => x.PassWord, new { @class = "inputstyle" })
                        </div>
                    </div>
                    <div class="uinArea" id="uinArea">
                        @Html.LabelFor(c => c.ValidCode,new { @class="input-tips"})
                        <div class="inputOuter" id="uArea">
                            @Html.TextBoxFor(x => x.ValidCode, new { @class = "inputstyle" })
                        </div>
                    </div>
                    <div class="uinArea" id="uArea">
                        <span class="input-tips"></span>
                        <div class="inputOuter" id="uArea">
                            <img id="valiCode" style="cursor: pointer;" class="col-md-5 control-label" src="~/Authentication/GetValidateCode" alt="验证码" />
                        </div>
                    </div>
                    <div style="padding-left:50px;margin-top:20px;">
                        <input type="submit" name="BtnSubmit" value="登录" style="width:150px;" class="button_blue" />
                    </div>
                }
            </div>


        </div>
        <!--登录end-->
    </div>
</div>

<script type="text/javascript">
    $(function () {
        $("#valiCode").bind("click", function () {
            this.src = "../Authentication/GetValidateCode?time=" + (new Date()).getTime();
        });
    });
</script>


